package com.jy.adscm.core.dao.sqlServer;

import com.jy.adscm.core.bean.demo.DemoEmp;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author yyy
 * @ClassName EmpMapper
 * @Description TODO
 * @date 2018/7/30 11:27
 */
//@Mapper
@Repository
public interface EmpMapper {

    @Select("SELECT * FROM EMP")
    public List<DemoEmp> queryAllDemoUser();

    @Insert("INSERT INTO EMP (id, name, address) VALUES (#{id},#{name},#{address})")
    public void insertUser(DemoEmp emp);
}
